package com.winning.pmph.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import javax.persistence.Table;

@Table(name = "MEDICAL_CALCULATOR_FIELD")
@Data
public class MedicalCalculatorField extends BaseEntity {
    //输入框
    public final static int INPUT_BOX = 0;
    //多值
    public final static int MORE_VALUE = 1;
    //级联选择框
    public final static int CASCADE = 3;
    //下拉框(目前只有关联平台)
    public final static int DROP_DOWN = 2;
    //公式说明
    public final static int EXPLAIN = 4;
    //富文本
    public final static int RICH_TEXT =7;
    //文本域
    public final static int TEXT_FIELD = 6;
    //公式类型——按钮组
    public final static int GROUP_BUTTON = 5;

    //动态标识字段
    public final static int IDENTIFICATION = 1;

    @TableId
    private String id;
    /**
     * 医学计算器ID
     */
    private String medicalCalcId;
    private String property;
    /**
     * 字段类型 0：输入框 1：级联选择  2:下拉框 3：富文本  4：文本域 5.公式类型——按钮组
     */
    private int kind;
    /**
     * 字段名称
     */
    private String name;
    /**
     * 动态标识字段(0:原始字段 1：动态添加字段)
     */
    private int ident;
    /**
     * 医学计算器库字段表id
     */
    private String medicalCalcLibFieldId;
}
